package com.heima.model.behavior.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class CollectionBehaviorDTO {

    @NotNull(message = "收藏行为的文章 id 不能为空")
    private Long entryId;

    @NotNull(message = "登录设备的 id 不能为空")
    private Integer equipmentId;

    @Range(min = 0, max = 1, message = "收藏行为的操作不符合规范")
    private Short operation;

    private Date publishedTime;

    @Range(min = 0, max = 1, message = "收藏行为的目标不符合规范")
    private Short type;

}
